package hw2.temperature;


public final class MyTemperature extends AbstractTemperature {
	/* The only state variable */
	private double celsius;
	
	public MyTemperature(final double celsius) {
		this.celsius = celsius;
	}
	
	@Override
	public double getCelsius() {
		return this.celsius;
	}
	
	@Override
	public void setCelsius( double celsius) {
		this.celsius = celsius;
	}

	@Override
	public double convertToFahrenheit() {
		return (9.0/5.0)*this.celsius+32;
	}

	@Override
	public double convertToCelsius() {
		return this.celsius;
	}
	
}